package com.gitlab.bootren.aliyun.oss;

import com.aliyun.oss.common.comm.Protocol;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;

/**
 * Created by serv on 15/8/4.
 */
public class FileResult implements Serializable{


    /**
     * 节点地址：例如杭州节点：http://oss-cn-hangzhou.aliyuncs.com
     */
    private String endpoint;

    /**
     * 文件存储bucket
     */
    private String bucket ;

    /**
     * protocol
     */
    private String protocol;

    /**
     * 文件名
     */
    private String key;

    /**
     * 文件的url地址
     */
    private String url;
    /**
     * md5
     */
    private String etag;


    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }


    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getEtag() {
        return etag;
    }

    public void setEtag(String etag) {
        this.etag = etag;
    }

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getBucket() {
        return bucket;
    }

    public void setBucket(String bucket) {
        this.bucket = bucket;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }
}
